const layout = () =>
    import ('@/components/backStage/layout/layout.vue');
const backstage = () =>
    import ('@/view/backStage/index/index.vue');
const manager1 = () =>
    import ('@/view/backStage/manager1/index.vue');


let backStageRouter = [{
    path: '/backstage',
    redirect: '/backstage/index',
    component: layout,
    children: [
        //首页
        {
            path: 'index',
            component: backstage,
            meta: {
                title: "首页",
                roles: ['role1'],
                keepAlive: true,
            }
        },
        //管理员1
        {
            path: 'manager1',
            component: manager1,
            meta: {
                title: "管理员1",
                roles: ['role21'],
                keepAlive: true,
            }
        },
    ]
}];

export default backStageRouter